<template>
  <div>
    <div class="top">
      <el-tag effect="dark">输入句子</el-tag>
      <!-- <span>输入句子</span> -->
      <el-input v-model="sentence"></el-input>
      <el-button type="danger" class="sub" @click="submit()">开始识别</el-button>
    </div>
    <el-row :gutter="20">
      <el-col :span="2" class="lef">
        <span class="left">识别结果</span>
      </el-col>
      <el-col :span="13" class="rig">
        <div v-for="(item,index) in result" :key="index" class="all">
          <el-tag effect="dark">{{item.tit}}</el-tag>
          <el-input v-model="item.content"></el-input>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      sentence: '',
      result: [
        {
          tit: '主体词语',
          content: ''
        },
        {
          tit: '主体解释',
          content: ''
        }
      ]
    }
  },
  methods: {
    submit() {
      this.result[0].content = '库存控制'
      this.result[1].content = '一种技术经济措施'
    }
  }
}
</script>

<style lang="less" scoped>
.rig {
  margin-left: 15px;
}

.all {
  .el-tag {
    height: 60px;
    line-height: 55px;
    background: #36ab60;
    width: 100px;
    text-align: center;
    border: none;
  }
  display: flex;
  margin: 30px 0px;
  /deep/ .el-input__inner {
    background-color: #dff3df;
    height: 60px;
  }
}

.lef {
  margin-top: 64px;
  margin-left: 10px;
}
.left {
  color: #30b42f;
  font-weight: 1000;
  font-size: 25px;
}

.top {
  display: flex;
  .el-tag {
    height: 60px;
    line-height: 55px;
    background: #1c4faa;
    width: 100px;
    text-align: center;
    border: none;
    font-size: 14px;
  }
  /deep/ .el-input__inner {
    background-color: #c2cfe7;
    height: 60px;
  }
  .el-input {
    width: 500px;
  }
}

.sub {
  margin-left: 20px;
  height: 50px;
  margin-top: 5px;
}
</style>